<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
	<head>
		<th:block th:include="include :: header('操作日志详细')" />
		<th:block th:include="include :: jsonview-css" />
		<style type="text/css">
		.form-group {
		    margin-bottom: 5px;
		}
		.jsonview {
            font-family: consolas, Courier, Courier New, monospace;
            font-size: 13px;
            white-space: pre-wrap;
		}
		</style>
	</head>
	<body class="white-bg">
		<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m-t" id="signupForm">
			<div class="form-group">
				<label class="col-sm-2 control-label">操作模块：</label>
				<div class="form-control-static" th:text="${map['title']} + ' / ' + ${map['business_type_name']}"></div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">登录信息：</label>
				<div class="form-control-static" th:text="${map['oper_name']} + ' / ' + ${map['dept_name']} + ' / ' + ${map['oper_ip']}+ ' / ' + ${map['oper_location']}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">请求地址：</label>
				<div class="form-control-static" th:text="${map['oper_url']}">
				</div>
			</div>
			<div class="form-group">
 				<label class="col-sm-2 control-label">请求方式：</label>
 				<div class="form-control-static" th:text="${map['request_method']}">
 				</div>
 			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">操作方法：</label>
				<div class="form-control-static" th:text="${map['method']}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">状态：</label>
				<div style="line-height: 34px;" th:class="${map['status'] == 0 ? 'label label-primary' : 'label label-danger'}">[[${map['status_name']}]]</div>
			</div>
			<div class="form-group">
 				<label class="col-sm-2 control-label">返回参数：</label>
 				<div class="form-control-static"><pre id="jsonResult"></pre></div>
 			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">请求参数：</label>
				<div class="form-control-static"><pre id="operParam"></pre></div>
			</div>
			<div class="form-group" th:style="'display:' + ${map['status'] == 0 ? 'none' : 'block'}">
				<label class="col-sm-2 control-label">异常信息：</label>
				<div class="form-control-static" th:text="${map['error_msg']}">
				</div>
			</div>
		</form>
	    </div>
	    <th:block th:include="include :: footer" />
	    <th:block th:include="include :: jsonview-js" />
	    <script th:inline="javascript">
		    $(function() {
		    	var operParam = [[${map['oper_param']}]];
		    	if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {
		    		$("#operParam").JSONView(operParam);
		    	} else {
		    		$("#operParam").text(operParam);
		    	}
		    	var jsonResult = [[${map['json_result']}]];
		    	if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
		    		$("#jsonResult").JSONView(jsonResult);
		    	} else {
		    		$("#jsonResult").text(jsonResult);
		    	}
		    });
	    </script>
	</body>
</html>